#include "Queue.h"

void TestPushAndPop(Queue * q)
{
	QueueInit(q);
	QueuePush(q, 2);
	QueuePush(q, 3);
	QueuePush(q, 4);
	QueuePush(q, 5);
	printf("size == %d\n", QueueSize(q));
	QueuePop(q);
	QueuePop(q);
	QueuePop(q);
	QueuePop(q);
}

void TestOther(Queue* q)
{
	QueueInit(q);
	QueuePush(q, 2);
	QueuePush(q, 3);
	QueuePush(q, 4);
	QueuePush(q, 5);
	printf("size == %d And Front == %d And Tail == %d\n", QueueSize(q),QueueFront(q),QueueBack(q));
	QueuePop(q);
	printf("size == %d And Front == %d And Tail == %d\n", QueueSize(q), QueueFront(q), QueueBack(q));
	QueuePop(q);
	printf("size == %d And Front == %d And Tail == %d\n", QueueSize(q), QueueFront(q), QueueBack(q));
	QueueDestroy(q);
}

int main()
{
	Queue q;
	//TestPushAndPop(&q);
	TestOther(&q);
	return 0;
}
